package com.enzoism.manual.springboot.service.impl;

import com.enzoism.manual.springboot.dao.UserDao;
import com.enzoism.manual.springboot.model.User;
import com.enzoism.manual.springboot.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @program: SpringCloud
 * @description: 用户查询功能
 * @author: zhifeng
 * @create: 2020-12-08 10:26
 */
@Service
public class UserServiceImpl implements UserService {

    @Resource
    UserDao userDao;

    public User queryUserByName(String name) {
        return userDao.queryUserByName(name);
    }
}
